import ajax from '../../component/httprequest/Request';
import url from '../../component/posturl/BaseUrl';
import qs from 'qs';
function returnOrationSources(callback,num) {
    let getNewsListUrl = `${url}/official/getArticle`;
    let data = qs.stringify({"id":"", "category":"1"});
    ajax.ajaxRequest(undefined,getNewsListUrl,data,undefined)
        .then(res=>{
            let orations = res.data.slice(0,num);
            callback(orations);
        })
        .catch(err=>{
            console.log(err)
        })
}
export default returnOrationSources;